package com.weiz.service;

import com.weiz.controller.TestController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private static final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Async
    @Override
    public void insertUser() throws InterruptedException{
        Thread.sleep(4000);
        logger.info("正在执行insertUser.");
    }
}
